﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using QzEbook.Admin;
using QzEbook.Common;

public partial class addFriend : System.Web.UI.Page
{
    private SessionUser userSession;

    protected void Page_Load(object sender, EventArgs e)
    {
        userSession = Session[SessionManager.LOGINUSER] as SessionUser;
        if (userSession == null)
        {
            output("你还未登陆");
            return;
        }

        string uIdString = Request["UID"] as string;
        if (string.IsNullOrEmpty(uIdString))
        {
            output("错误提交");
            return;
        }
        int uid=int.Parse(uIdString);
        if (uid == userSession.Uid)
        {
            output("不能加自己为好友");
            return;
        }

        output("正在添加中...");

    }



    private void output(string message)
    {
            Response.Write(message);
            Response.End();
    }
}
